<?php

namespace App\Http\Middleware;

use Closure;
use App;
use Illuminate\Support\Facades\Log;

class TraceRoute
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        Log::info('request uri:' . $request->url() . "#####" . 'request param:' . json_encode($request->input()));

        // continue request
        return $next($request);
    }
}
